package net.lsr.demo.helper;

/**
 * desc:
 * @author lsr
 * @version 2014年5月14日
 */
public class Constant {
/*	public static final String API_SERVER_URL = "http://192.168.0.59:8080/platform/";
	
	public static final String APP_SERVER_URL = "http://192.168.0.17:8080/app-signin/";*/
	
	public static String ACCESS_TOKEN = "";
	
	public static String USER_TOKEN = "";
	
	public static String CLIENT_KEY = "";
	
	/**
	 * 应用appID
	 */									 
	public static final long APP_ID = 6147483748L;
	/**
	 * appSecret
	 */
	public static final String APP_SECRET = "IUSLGC0SPK-u-gr5fg6gcg55rdIwIwXpycpmDy5J49Y";
	/**
	 * accessType
	 */
	public static final String ACCESS_TYPE = "CLIENT";
	/**
	 * token
	 */
	public static final String APP_TOKEN = "abcd";
	/**
	 * accessToken 失效（超时）
	 */
	public static final int ACCESS_TOKEN_TIME_OUT = 12001;
	/**
	 * 调用各种服务返回正确的都为0
	 */
	public static final byte OK = 0;
	
	/**
	 * 操作失败：-1
	 */
	public static final byte FAILURE = -1;
	
	/**
	 * 系统错误
	 */
	public static final byte SYSTEM_ERROR = -2;
	
	/**
	 * 网络错误，主要是访问API
	 */
	public static final byte NETWORK_ERROR = -3;
	
	/**
	 * 参数错误，缺少参数
	 */
	public static final byte MISSING_PARAM_ERROR = -4;
	
	/**
	 * clientKey失效的值
	 */
	public static final byte CLIENTKEY_TIMEOUT = -1;
	/**
	 * 信息格式-位置消息
	 */
	public static final byte MESSAGE_TYPE_LOCATION = 4;
	
	/**
	 * 资源类型-位置
	 */
	public static final String RESOURCE_TYPE_LOCATION = "1";
	/**
	 * 类型：自动
	 */
	public static final byte TYPE_AUTOMATIC = 0;
	/**
	 * 类型：手动
	 */
	public static final byte TYPE_MANUAL = 1;
	/**
	 * 结果码
	 */
	public static final String RESULT_CODE = "code";
	/**
	 * 结果信息
	 */
	public static final String RESULT_MESSAGE = "msg";
	/**
	 * 结果数据
	 */
	public static final String RESULT_DATA = "result";
	
	/**
	 * 设备类型：PC
	 */
	public static final byte DEVICE_TYPE_PC = 1;
	/**
	 * 设备类型：手机
	 */
	public static final byte DEVICE_TYPE_MOBILE = 2;
	/**
	 * 设备类型：pad
	 */
	public static final byte DEVICE_TYPE_PAD = 4;
	/**
	 * 设备类型：网页
	 */
	public static final byte DEVICE_TYPE_WEB = 8;
	
	/**
	 * 签到类型：上班
	 */
	public static final byte SIGNIN_TYPE_ONDUTY = 1;
	/**
	 * 签到类型：下班
	 */
	public static final byte SIGNIN_TYPE_OFFDUTY = 2;
	
	/**
	 * 签到状态：正常
	 */
	public static final byte STATUS_NORMAL = 1;
	/**
	 * 签到状态：迟到
	 */
	public static final byte STATUS_BE_LATE = 2;
	/**
	 * 签到状态：早退
	 */
	public static final byte STATUS_LEAVE_EARLY = 3;
	/**
	 * 签到状态：缺卡
	 */
	public static final byte STATUS_ABSENT = 4;
	
	/**
     * 签到状态：加班
     */
    public static final byte STATUS_OVERTIME = 5;
    /**
     * 签到状态：节假日
     */
    public static final byte STATUS_HOLIDAY = 6;
	
	
	/**
	 * IP结果码：数据为空
	 */
	public static final byte IP_CODE_EMPTY_DATA = 1;
	/**
	 * IP结果码：IP为空
	 */
	public static final byte IP_CODE_EMPTY_IP = 2;
	/**
	 * IP结果码：IP无效
	 */
	public static final byte IP_CODE_INVALID_IP = 3;
	/**
	 * IP结果码：地点为空
	 */
	public static final byte IP_CODE_EMPTY_LOCATION = 4;
	
	public static final String AREA_RADIUS = "AREA_RADIUS";
	
}
